package designPattern.modelMethod;
import designPattern.modelMethod.ModelParent;
import designPattern.modelMethod.MyException;

/**
 * Created by mHandler on 2018/7/8 0008.
 * Description:
 */
public class TestA extends ModelParent {


    @Override
    public void service(String method) throws MyException {
        super.service(method);
    }

    @Override
    public void doGet() throws MyException {
        System.out.println("正确的get方式");
    }

    public static void main(String[] args) {
        ModelParent a = new TestA();
        try {
            a.service("get");
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
